package com.improve.frame.common.annotation;

import com.improve.frame.common.enums.SensitiveType;

import java.lang.annotation.*;

/**
 * @Description 字段脱敏注解
 * @Author wzxing918
 * @Date 2021-03-31
 * @Version 1.0.0
 **/
@Target(ElementType.FIELD)
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Inherited
public @interface Desensitized {
    /**
     * 脱敏类型
     *
     * @return 脱敏类型
     */
    SensitiveType type() default SensitiveType.DEFAULT;
}